package com.md.threadtest.climb;

/**
 * @Author Gong
 * @Description
 * @dATE 2022/3/29 8:45
 **/
public class ThTest {
    public static void main(String[] args) throws InterruptedException {
        //main
        Thread oldThread =new Thread(new MyOldThread());
        oldThread.setName("老头");
        oldThread.start();

        Thread myThread =new Thread(new MyThread()) ;
        myThread.setName("年轻人");
        myThread.start();




    }
}
